package com.ruoyi.content.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
import java.util.List;

/**
 * 文章表 con_article
 * 
 * @author cloudoer
 * @date 2019-06-25
 */
public class Article extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 文章ID */
	private Long articleId;
	/** 文章标题 */
	private String title;
	/** 文章内容 */
	private String content;
	/** 头图地址 */
	private String image;
	/** 作者 */
	private String author;
	/** 发布时间 */
	private Date postTime;
	/** 简略内容 */
	private String subContent;
	/** 来源 */
	private String source;
	/** 推荐排名 */
	private String ranking;
	/** 状态（0：编辑中，1：发布中，2：测回中） */
	private String state;

	private List<Tag> tags;

	public void setArticleId(Long articleId) 
	{
		this.articleId = articleId;
	}

	public Long getArticleId() 
	{
		return articleId;
	}
	public void setTitle(String title) 
	{
		this.title = title;
	}

	public String getTitle() 
	{
		return title;
	}
	public void setContent(String content) 
	{
		this.content = content;
	}

	public String getContent() 
	{
		return content;
	}
	public void setImage(String image) 
	{
		this.image = image;
	}

	public String getImage() 
	{
		return image;
	}
	public void setAuthor(String author) 
	{
		this.author = author;
	}

	public String getAuthor() 
	{
		return author;
	}
	public void setPostTime(Date postTime) 
	{
		this.postTime = postTime;
	}

	public Date getPostTime() 
	{
		return postTime;
	}
	public void setSubContent(String subContent) 
	{
		this.subContent = subContent;
	}

	public String getSubContent() 
	{
		return subContent;
	}
	public void setSource(String source) 
	{
		this.source = source;
	}

	public String getSource() 
	{
		return source;
	}
	public void setRanking(String ranking) 
	{
		this.ranking = ranking;
	}

	public String getRanking() 
	{
		return ranking;
	}
	public void setState(String state) 
	{
		this.state = state;
	}

	public String getState() 
	{
		return state;
	}

	public void setTags(List<Tag> tags) {
		this.tags = tags;
	}

	public List<Tag> getTags() {
		return tags;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("articleId", getArticleId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("image", getImage())
            .append("author", getAuthor())
            .append("postTime", getPostTime())
            .append("subContent", getSubContent())
            .append("source", getSource())
            .append("ranking", getRanking())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("state", getState())
            .toString();
    }
}
